import EventHandle from './eventHandle'

let _eventHandle

export default {
  bind (el, binding, vnode) {
    _eventHandle = new EventHandle(binding)

    el.addEventListener('touchstart', _eventHandle.handle.bind(_eventHandle))
  },
  unbind (el, binding) {
    el.removeEventListener('touchstart', _eventHandle.handle.bind(_eventHandle))
  }
}
